﻿<?xml version="1.0" encoding="utf-8" ?>
<control xmlns:def="Definition" xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense" xmlns:shell="http://www.sitecore.net/shell" xmlns:html="http://www.sitecore.net/html">
  <PowerShellHtml>
    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
    <html>
      <head>
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <title>Sitecore</title>
        <Stylesheet Src="/sitecore/shell/themes/standard/default.css" DeviceDependant="true" runat="server" />
        <Stylesheet Src="/Console/Styles/Console.css" DeviceDependant="true" runat="server" />
        <Script type="text/JavaScript" language="javascript" src="/Console/Scripts/jquery-1.4.1.js" />
        <Script type="text/JavaScript" language="javascript" src="/Console/Scripts/jquery.hotkeys-0.7.9.js" />
        <Script src="/sitecore/shell/controls/InternetExplorer.js" type="text/javascript" />
        <Script src="/sitecore/shell/controls/Sitecore.js" type="text/javascript" />
        <meta name="GENERATOR" content="Sitecore" />
        <meta http-equiv="imagetoolbar" content="no" />
        <meta http-equiv="imagetoolbar" content="false" />
      </head>
      <body scroll="no" style="margin:0px"
              onload="javascript:scOnLoad()"
              onmouseover="javascript:this.bg=this.style.background;this.style.background='#EBEBEE'"
              onmouseout="javascript:this.style.background=this.bg"
              ondblclick="javascript:scDblClick()"
              onclick="javascript:scClick()" class="noscrolls">
        <html:HtmlForm def:ID="Form" style="margin:0px">
          <CodeBeside Type="Cognifide.PowerShell.Console.Layouts.PowerShellConsoleForm,Cognifide.PowerShell"/>
          <Border id="Console" Height="100%" class="console pre topArea">
            <Border id="Output" Height="70%" class="console pre">
              <!-- Memo id="txtResult" Height="70%" Width="100%" OnKeyDown="return keyPress(event);"/ -->
              <Literal id="txtResult" Text=""/>
            </Border>
            <Memo id="txtScript" Height="56px" Width="100%" Class="console pre"/>
            <Button id="Execute" Click="Execute" Header="Execute" Margin="0px 4px 0px 0px"/>
          </Border>
        </html:HtmlForm>
        <Script type="text/javascript" >
          $(document).bind('keydown', 'Ctrl+return', function () {
          $("#Execute").trigger("click");
          /* alert("Ctrl+return"); */
          });
          $(document).bind('keydown', 'Alt+return', function () {
          $("#Execute").trigger("click");
          /* alert("Alt+return"); */
          });
          $("#txtScript").focus();
        </Script>
      </body>
    </html>
  </PowerShellHtml>
</control>